{module, pattern1}.  %% version = 0

{exports, [{d0,1},{module_info,0},{module_info,1}]}.

{attributes, [{classlevel,[{class1,1}]},
              {vmt,[{class1,[{method1,2,class1},{method2,2,class1}]}]},
              {classlevel,[{class2,2}]},
              {vmt,[{class2,[{method1,2,class1},{method2,2,class2}]}]}]}.

{labels, 7}.


{function, d0, 1, 2}.
  {label,1}.
    {func_info,{atom,pattern1},{atom,d0},1}.
  {label,2}.
    {allocate,1,1}.
    {move,{x,0},{x,1}}.
    {move,{integer,2},{x,2}}.
    {move,{integer,4},{x,0}}.
    {move,{x,1},{y,0}}.
    {call_ext,3,{extfunc,erlang,setelement,3}}.
    {move,{y,0},{x,1}}.
    {move,{integer,2},{x,2}}.
    {move,{integer,5},{x,0}}.
    {call_ext,3,{extfunc,erlang,setelement,3}}.
    {move,{y,0},{x,1}}.
    {move,{integer,2},{x,2}}.
    {move,{integer,6},{x,0}}.
    {call_ext_last,3,{extfunc,erlang,setelement,3},1}.


{function, module_info, 0, 4}.
  {label,3}.
    {func_info,{atom,pattern1},{atom,module_info},0}.
  {label,4}.
    {move,{atom,pattern1},{x,0}}.
    {call_ext_only,1,{extfunc,erlang,get_module_info,1}}.


{function, module_info, 1, 6}.
  {label,5}.
    {func_info,{atom,pattern1},{atom,module_info},1}.
  {label,6}.
    {move,{x,0},{x,1}}.
    {move,{atom,pattern1},{x,0}}.
    {call_ext_only,2,{extfunc,erlang,get_module_info,2}}.
